<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
<h:head>
    <title>#{msg.page_index}</title>
    <h:outputStylesheet library="css" name="table-review-style.css"/>
</h:head>
<h:body>
    <ui:decorate template="/sample.xhtml">
        <ui:define name="body">
            <h:form>
                <table class="simple-little-table" cellspacing='0'>
                    <tr>
                        <th>ID: #{carViewBean.car.id} </th>
                        <th>RU</th>
                        <th>EN</th>
                    </tr>

                    <tr>
                        <td >#{msg.text_AddAdverBrand}</td>
                        <td>#{carViewBean.car.transport.brand.nameRu}</td>
                        <td>#{carViewBean.car.transport.brand.nameEn}</td>
                    </tr>

                    <tr>
                        <td >#{msg.text_AddAdverModel}</td>
                        <td>#{carViewBean.car.model.nameRu}</td>
                        <td>#{carViewBean.car.model.nameEn}</td>
                    </tr>

                    <tr>
                        <td >#{msg.text_AddAdverCondition}</td>
                        <td>#{carViewBean.car.transport.condition.nameRu}</td>
                        <td>#{carViewBean.car.transport.condition.nameEn}</td>
                    </tr>
                    <tr>
                        <td >#{msg.text_AddAdverColor}</td>
                        <td>#{carViewBean.car.transport.color.nameRu}</td>
                        <td>#{carViewBean.car.transport.color.nameEn}</td>
                    </tr>
                    <tr>
                        <td >#{msg.text_AddAdverBodyType}</td>
                        <td>#{carViewBean.car.bodyType.nameRu}</td>
                        <td>#{carViewBean.car.bodyType.nameEn}</td>
                    </tr>
                    <tr>
                        <td >#{msg.text_AddAdverTypeEngine}</td>
                        <td>#{carViewBean.car.typeEngine.nameRu}</td>
                        <td>#{carViewBean.car.typeEngine.nameEn}</td>
                    </tr>
                    <tr>
                        <td >#{msg.text_AddAdverValue}</td>
                        <td>#{carViewBean.car.valueEngine}</td>
                        <td>---</td>
                    </tr>
                    <tr>
                        <td >#{msg.text_AddAdverPrivod}</td>
                        <td>#{carViewBean.car.privod.nameRu}</td>
                        <td>#{carViewBean.car.privod.nameEn}</td>
                    </tr>
                    <tr>
                        <td >#{msg.text_AddAdverDate}</td>
                        <td>
                            <h:outputText value="#{carViewBean.car.transport.date}">
                                <f:convertDateTime pattern="yyyy" />
                            </h:outputText>
                        </td>
                        <td>---</td>
                    </tr>




                    <tr>
                        <th>#{msg.text_AddAdverPrice} : <h:outputText value=" #{carViewBean.car.transport.price}" >
                            <f:convertNumber type="currency"
                                             currencySymbol="#{carViewBean.car.transport.currency.shortnameEn}"
                                             groupingUsed="true"
                                             minFractionDigits="2"
                                             maxFractionDigits="2"/>
                        </h:outputText>
                            #{carViewBean.car.transport.currency.shortnameEn}</th>
                    </tr>
                    <tr>
                        <th>
                            <h:outputLink value="/user">
                                <h:outputFormat id="infoUser" value="#{msg.text_Seller} "/>

                                <f:param name="id" value="#{carViewBean.car.transport.userId}" />
                            </h:outputLink>

                        </th>
                    </tr>
                </table>

            </h:form>
        </ui:define>
    </ui:decorate>










</h:body>
</html>


